package Demo6;

import java.util.Arrays;

public class MyArraysDemo {
    public static void main(String[] args) {
        int [] arr ={3,2,4,6,7};
        System.out.println(Arrays.toString(arr));

        int [] arr1 ={2,3123,232,231,5677};
        Arrays.sort(arr1);
        System.out.println(Arrays.toString(arr1));


        int [] arr2 ={1,2,3,4,5,6,7,8,9};
        int index = Arrays.binarySearch(arr2, 10);
        System.out.println(index);
    }
}
